package com.mapper;

import com.pojo.User1;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper//此注解表示这是一个mybatis的mapper类
@Repository
public interface UserMapper {

    //int age=18;

    public List<User1> queryAll();
    public User1 queryById(int id);
    public void addUser(User1 user);
    public void updataUser(User1 user);
    public void delUser(int id);
}
